package com.lecyon.farm.vo.sync;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Yao Zheng
 * @Date 2020/4/27 11:25
 */
@Document(collection = "sync_fail_message")
@Data
public class SyncFailMessage implements Serializable {

    @Id
    private String id;

    @Field
    private String targetPlatform = "lvgu";

    @Field
    private String topic;

    @Field
    private String content;

    @Field
    private LocalDateTime syncTime;

    @Field
    private String response;

}
